import request from '@/utils/request.js'

export function getBoxData() {
    return request({
        url: '/admin/index',
        method: 'GET',
    })
}

// 获取折线图数据的接口
export function getLineChartData(params) {
    return request({
        url: '/admin/index/lineChart',
        method: 'GET',
        params,
    })
}

//获取柱状图数据
export function getBarChartData(params) {
    return request({
        url: '/admin/index/barChart',
        method: 'GET',
        params,
    })
}

//获取拼图数据
export function getPieChartData(params) {
    return request({
        url: '/admin/index/pieChart', // 假设这是获取饼图数据的接口
        method: 'GET',
        params,
    })
}